package com.broadsoft.cluster.smartcluster.partition;

import java.io.Serializable;

import org.jgroups.Address;

public class PartitionGroup implements Serializable {
    private static final long serialVersionUID = 1L;

    private Address master;
    private final int partitionId;
    private Address slave;
    
    public PartitionGroup(int partitionId) {
        this.partitionId = partitionId;
    }

    public Address getMaster() {
        return master;
    }

    public int getPartitionId() {
        return partitionId;
    }

    public Address getSlave() {
        return slave;
    }

    public void setMaster(Address master) {
        this.master = master;
    }

    private void setSlave(Address slave) {
        this.slave = slave;
    }
}